package net.maku.qdd.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 优惠券Excel导出VO
 *
 * @author MAKU babamu@126.com
 * <a href="https://maku.net">MAKU</a>
 */
@Data
public class TicketExcelVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ExcelProperty("券ID")
    private Integer ticketId;

    @ExcelProperty("券码")
    private Integer ticketCode;

    @ExcelProperty("商品ID")
    private Integer goodsId;

    @ExcelProperty("商家ID")
    private Integer merchantId;

    @ExcelProperty("优惠额度")
    private Float preferential;

    @ExcelProperty("使用限制")
    private Integer limitation;

    @ExcelProperty("过期时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deadTime;

    @ExcelProperty("生效时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime effectiveTime;
}
